package com.menggudf.entity;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

@Entity
@Table(name="permission")
public class Permission implements Serializable{

    /**
     * 
     */
    private static final long serialVersionUID = 2673388980479595041L;
    
    private int id;
    private String code;
    private Integer oneModule;
    private Integer twoModule;
    private Integer oper;
    private String fullName;
    private Date createdTime;
    
    @Id
    @Column(name="id",unique=true,nullable=false)
    @GeneratedValue(strategy=GenerationType.IDENTITY)
    public int getId() {
        return id;
    }
    public void setId(int id) {
        this.id = id;
    }
    
    @Column(name="code")
    public String getCode() {
        return code;
    }
    public void setCode(String code) {
        this.code = code;
    }
    
    @Column(name="oneModule")
    public Integer getOneModule() {
        return oneModule;
    }
    public void setOneModule(Integer oneModule) {
        this.oneModule = oneModule;
    }
    
    @Column(name="twoModule")
    public Integer getTwoModule() {
        return twoModule;
    }
    public void setTwoModule(Integer twoModule) {
        this.twoModule = twoModule;
    }
    
    @Column(name="oper")
    public Integer getOper() {
        return oper;
    }
    public void setOper(Integer oper) {
        this.oper = oper;
    }
    
    @Column(name="fullName")
    public String getFullName() {
        return fullName;
    }
    public void setFullName(String fullName) {
        this.fullName = fullName;
    }
    
    @Temporal(TemporalType.TIMESTAMP)
    @Column(name = "createdTime", length = 19)
    public Date getCreatedTime() {
        return createdTime;
    }
    public void setCreatedTime(Date createdTime) {
        this.createdTime = createdTime;
    }
    
}
